package com.changan.service.impl;

import com.changan.mapper.ProductMapper;
import com.changan.model.Product;
import com.changan.service.ProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @program: alipay
 * @description: 商品实现类
 * @author: Mr.Nie
 * @create: 2021-12-10 11:25
 **/
@Service
public class ProductServiceImpl implements ProductService {

    @Autowired
    private ProductMapper productMapper;


    @Override
    public List<Product> getProducts() {
        return productMapper.getProducts();
    }

    @Override
    public Product getProductById(String id) {
        return productMapper.getProductById(id);
    }
}
